package com.yunxi;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by xuruzi on 2019/4/24.
 */
/*@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
@MapperScan({"com.yunxi.dao.*"})*/
//@EnableDistributedTransaction
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class,DruidDataSourceAutoConfigure.class})
@ImportResource(value = {"classpath:/spring/basedata-main.xml"})
@MapperScan({"com.yunxi.dao.*"})
@EnableSwagger2Doc
public class BaseServiceBootStrap {
    public static void main(String[] args){
        new SpringApplicationBuilder(BaseServiceBootStrap.class)
                .web(WebApplicationType.NONE).run(args);
    }
}
